package com.kaixinff.kaixin001.reg.server;

import java.io.IOException;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.kaixinff.kaixin001.reg.client.KaiXinRegService;
import com.kaixinff.net.HttpClient;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class KaiXinRegServiceImpl extends RemoteServiceServlet implements
		KaiXinRegService {

	public String regMail() throws IllegalArgumentException {
		HttpClient client = new HttpClient();
		String url = "http://domain.mail.qq.com/cgi-bin/loginpage?t=dm_loginpage&s=admin";
		String result = null;
		try {
			client.doGet(url, null).getContent();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return result;
	}
}
